<template lang="html">
  <div class="art-title">
    <div class="artist-header">
    <div class="header-mask"></div>
    <div class="artist-header-content">
        <div class="pic">
            <img :src="avatar" />
        </div>
        <p>{{ name }}</p>
    </div>
</div>
  </div>
</template>

<script>
export default {
  name:"arttitle",
  data(){
    return{
      arttitle:{}
    }
  },
  props:{
    name:{
      type:String,
      defualt:""
    },
    avatar:{
      type:String,
      default:""
    }
  }
}
</script>

<style scoped>

.artist-header {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.header-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(228, 231, 231);
    overflow: hidden;
}


.artist-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 25px 0;
}

.pic {
    width: 80px;
    height: 80px;
    -webkit-border-radius: 40px;
    border-radius: 40px;
    overflow: hidden;
    margin: 0 auto;
}

.artist-header-content p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    font-size: 1.8rem;
    line-height: 30px;
    margin-top: 12px;
    color: #333;
    font-weight: 400;
}

</style>
